<?php

include("header.php");

	$server_ip = $_GET["ip"];
	if(strlen($server_ip) == 0)
		$server_ip = "";
	
	print("
		<title>DoD Block Exploits - View Detections</title>
	
		<table align=\"center\" cellpadding=\"5\" cellspacing=\"0\" rules=\"rows\">
		<tr height=\"25px\">
		<td colspan=\"2\" align=\"center\" style=\"background: #20578d\">
		Detection Name Listing
		</td>
		</tr>
			
		<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='list_detections.php?list=all&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">View All</td>
		</tr>
		
		<tr class=\"row1\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row1'\" onClick=\"document.location='list_detections.php?list=idpending&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">Steam ID Pending</td>
		</tr>
		
		<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='list_detections.php?list=setinfo&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">Setinfo Trace</td>
		</tr>
		
		<tr class=\"row1\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row1'\" onClick=\"document.location='list_detections.php?list=speckill&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">Spectator Killing</td>
		</tr>
		
		<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='list_detections.php?list=whitemodel&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">White Model</td>
		</tr>
		
		<tr class=\"row1\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row1'\" onClick=\"document.location='list_detections.php?list=mgreload&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">Undeployed MG-Reload</td>
		</tr>
		
		<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='list_detections.php?list=respawn&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">Respawn Timer Bypass</td>
		</tr>
		
		<tr class=\"row1\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row1'\" onClick=\"document.location='list_detections.php?list=classlimit&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">Class Limit Bypass / White Model</td>
		</tr>
		
		<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='list_detections.php?list=voicechat&ip=".$server_ip."'\">
		<td colspan=\"2\" class=\"customtd1\" align=\"center\">Voice Chat Name Spoofing</td>
		</tr>
		");
				 
	echo "<tr><td align=\"center\" colspan=\"2\" height=\"25px\" style=\"background: #20578d\">";
	
		if(strlen($server_ip) > 0)
			$query = "SELECT COUNT(id) AS 'total' FROM ".$tbl_logged." WHERE (server_ip='".$server_ip."')";
		else
			$query = "SELECT COUNT(id) AS 'total' FROM ".$tbl_logged."";
			
		$result = mysql_query($query);
			
		if($result)
			$detectCount = mysql_fetch_array($result);
		else
			$detectCount['total'] = 0;
	
		if(strlen($server_ip))
			echo "* ".$detectCount['total']." detections for '".$server_ip."' *";
		else
			echo "* ".$detectCount['total']." detections for ALL servers *";
		
		echo "</td></tr>";

include("footer.php");

?>